#include<stdio.h>
int main(int argc,char *argv[])
{
	int result=1;
	int i;int n;
	while(scanf("%d",&n)!=EOF)
	{
		result=1;
		for(i=1;i<n;i++)
	{
		result=(result+1)*2;
	}
	printf("%d\n",result);
	}
	
	return 0;
}
